<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FLAC: include/FLAC/callback.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FLAC
   &#160;<span id="projectnumber">1.4.3</span>
   </div>
   <div id="projectbrief">Free Lossless Audio Codec</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_1982b5890de532b4beef7221dae776e2.html">FLAC</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">callback.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="callback_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* libFLAC - Free Lossless Audio Codec library</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (C) 2004-2009  Josh Coalson</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * Copyright (C) 2011-2023  Xiph.Org Foundation</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * are met:</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * - Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * - Redistributions in binary form must reproduce the above copyright</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * documentation and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * - Neither the name of the Xiph.org Foundation nor the names of its</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * contributors may be used to endorse or promote products derived from</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * this software without specific prior written permission.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * ``AS IS&#39;&#39; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#ifndef FLAC__CALLBACK_H</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#define FLAC__CALLBACK_H</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;ordinals.h&quot;</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span> <span class="comment">/* for size_t */</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">   89</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">void</span>* <a class="code" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a>;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#ga49d95218a6c09b215cd92cc96de71bf9">  104</a></span>&#160;<span class="keyword">typedef</span> size_t (*<a class="code" href="group__flac__callbacks.html#ga49d95218a6c09b215cd92cc96de71bf9">FLAC__IOCallback_Read</a>) (<span class="keywordtype">void</span> *ptr, <span class="keywordtype">size_t</span> size, <span class="keywordtype">size_t</span> nmemb, <a class="code" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> handle);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160; </div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#gad991792235879aecae289b56a112e1b8">  117</a></span>&#160;<span class="keyword">typedef</span> size_t (*<a class="code" href="group__flac__callbacks.html#gad991792235879aecae289b56a112e1b8">FLAC__IOCallback_Write</a>) (<span class="keyword">const</span> <span class="keywordtype">void</span> *ptr, <span class="keywordtype">size_t</span> size, <span class="keywordtype">size_t</span> nmemb, <a class="code" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> handle);</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#gab3942bbbd6ae09bcefe7cb3a0060c49c">  130</a></span>&#160;<span class="keyword">typedef</span> int (*<a class="code" href="group__flac__callbacks.html#gab3942bbbd6ae09bcefe7cb3a0060c49c">FLAC__IOCallback_Seek</a>) (<a class="code" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> handle, FLAC__int64 offset, <span class="keywordtype">int</span> whence);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#ga45314930cabc2e9c04867eae6bca309f">  141</a></span>&#160;<span class="keyword">typedef</span> FLAC__int64 (*<a class="code" href="group__flac__callbacks.html#ga45314930cabc2e9c04867eae6bca309f">FLAC__IOCallback_Tell</a>) (<a class="code" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> handle);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#ga00ae3b3d373e691908e9539ebf720675">  152</a></span>&#160;<span class="keyword">typedef</span> int (*<a class="code" href="group__flac__callbacks.html#ga00ae3b3d373e691908e9539ebf720675">FLAC__IOCallback_Eof</a>) (<a class="code" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> handle);</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160; </div>
<div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#ga0032267fac38220689778833e08f7387">  162</a></span>&#160;<span class="keyword">typedef</span> int (*<a class="code" href="group__flac__callbacks.html#ga0032267fac38220689778833e08f7387">FLAC__IOCallback_Close</a>) (<a class="code" href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a> handle);</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="structFLAC____IOCallbacks.html">  175</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#ga6dd767bc254e31dc47c9a0d218e72190">  176</a></span>&#160;    <a class="code" href="group__flac__callbacks.html#ga49d95218a6c09b215cd92cc96de71bf9">FLAC__IOCallback_Read</a> <a class="code" href="group__flac__callbacks.html#ga6dd767bc254e31dc47c9a0d218e72190">read</a>;   </div>
<div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#gad64901e5a5710ee4c3c157c75d51ddc0">  177</a></span>&#160;    <a class="code" href="group__flac__callbacks.html#gad991792235879aecae289b56a112e1b8">FLAC__IOCallback_Write</a> <a class="code" href="group__flac__callbacks.html#gad64901e5a5710ee4c3c157c75d51ddc0">write</a>; </div>
<div class="line"><a name="l00178"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#gaa1a6f4623965a2d9fcc09b92fabaa1ee">  178</a></span>&#160;    <a class="code" href="group__flac__callbacks.html#gab3942bbbd6ae09bcefe7cb3a0060c49c">FLAC__IOCallback_Seek</a> <a class="code" href="group__flac__callbacks.html#gaa1a6f4623965a2d9fcc09b92fabaa1ee">seek</a>;   </div>
<div class="line"><a name="l00179"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#ga8ff0d175a7b3e9318270e305918df827">  179</a></span>&#160;    <a class="code" href="group__flac__callbacks.html#ga45314930cabc2e9c04867eae6bca309f">FLAC__IOCallback_Tell</a> <a class="code" href="group__flac__callbacks.html#ga8ff0d175a7b3e9318270e305918df827">tell</a>;   </div>
<div class="line"><a name="l00180"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#ga4810838b77667dc02415c854b2103e66">  180</a></span>&#160;    <a class="code" href="group__flac__callbacks.html#ga00ae3b3d373e691908e9539ebf720675">FLAC__IOCallback_Eof</a> <a class="code" href="group__flac__callbacks.html#ga4810838b77667dc02415c854b2103e66">eof</a>;     </div>
<div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="group__flac__callbacks.html#ga8e447ae1999d9da9ebad5417f47223be">  181</a></span>&#160;    <a class="code" href="group__flac__callbacks.html#ga0032267fac38220689778833e08f7387">FLAC__IOCallback_Close</a> <a class="code" href="group__flac__callbacks.html#ga8e447ae1999d9da9ebad5417f47223be">close</a>; </div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;} <a class="code" href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a>;</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160; </div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="comment">/* \} */</span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160; </div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;}</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160; </div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="agroup__flac__callbacks_html_ga0032267fac38220689778833e08f7387"><div class="ttname"><a href="group__flac__callbacks.html#ga0032267fac38220689778833e08f7387">FLAC__IOCallback_Close</a></div><div class="ttdeci">int(* FLAC__IOCallback_Close)(FLAC__IOHandle handle)</div><div class="ttdef"><b>Definition:</b> callback.h:162</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_ga00ae3b3d373e691908e9539ebf720675"><div class="ttname"><a href="group__flac__callbacks.html#ga00ae3b3d373e691908e9539ebf720675">FLAC__IOCallback_Eof</a></div><div class="ttdeci">int(* FLAC__IOCallback_Eof)(FLAC__IOHandle handle)</div><div class="ttdef"><b>Definition:</b> callback.h:152</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_ga45314930cabc2e9c04867eae6bca309f"><div class="ttname"><a href="group__flac__callbacks.html#ga45314930cabc2e9c04867eae6bca309f">FLAC__IOCallback_Tell</a></div><div class="ttdeci">FLAC__int64(* FLAC__IOCallback_Tell)(FLAC__IOHandle handle)</div><div class="ttdef"><b>Definition:</b> callback.h:141</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_ga4810838b77667dc02415c854b2103e66"><div class="ttname"><a href="group__flac__callbacks.html#ga4810838b77667dc02415c854b2103e66">FLAC__IOCallbacks::eof</a></div><div class="ttdeci">FLAC__IOCallback_Eof eof</div><div class="ttdef"><b>Definition:</b> callback.h:180</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_ga49d95218a6c09b215cd92cc96de71bf9"><div class="ttname"><a href="group__flac__callbacks.html#ga49d95218a6c09b215cd92cc96de71bf9">FLAC__IOCallback_Read</a></div><div class="ttdeci">size_t(* FLAC__IOCallback_Read)(void *ptr, size_t size, size_t nmemb, FLAC__IOHandle handle)</div><div class="ttdef"><b>Definition:</b> callback.h:104</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_ga4c329c3168dee6e352384c5e9306260d"><div class="ttname"><a href="group__flac__callbacks.html#ga4c329c3168dee6e352384c5e9306260d">FLAC__IOHandle</a></div><div class="ttdeci">void * FLAC__IOHandle</div><div class="ttdef"><b>Definition:</b> callback.h:89</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_ga6dd767bc254e31dc47c9a0d218e72190"><div class="ttname"><a href="group__flac__callbacks.html#ga6dd767bc254e31dc47c9a0d218e72190">FLAC__IOCallbacks::read</a></div><div class="ttdeci">FLAC__IOCallback_Read read</div><div class="ttdef"><b>Definition:</b> callback.h:176</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_ga8e447ae1999d9da9ebad5417f47223be"><div class="ttname"><a href="group__flac__callbacks.html#ga8e447ae1999d9da9ebad5417f47223be">FLAC__IOCallbacks::close</a></div><div class="ttdeci">FLAC__IOCallback_Close close</div><div class="ttdef"><b>Definition:</b> callback.h:181</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_ga8ff0d175a7b3e9318270e305918df827"><div class="ttname"><a href="group__flac__callbacks.html#ga8ff0d175a7b3e9318270e305918df827">FLAC__IOCallbacks::tell</a></div><div class="ttdeci">FLAC__IOCallback_Tell tell</div><div class="ttdef"><b>Definition:</b> callback.h:179</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_gaa1a6f4623965a2d9fcc09b92fabaa1ee"><div class="ttname"><a href="group__flac__callbacks.html#gaa1a6f4623965a2d9fcc09b92fabaa1ee">FLAC__IOCallbacks::seek</a></div><div class="ttdeci">FLAC__IOCallback_Seek seek</div><div class="ttdef"><b>Definition:</b> callback.h:178</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_gab3942bbbd6ae09bcefe7cb3a0060c49c"><div class="ttname"><a href="group__flac__callbacks.html#gab3942bbbd6ae09bcefe7cb3a0060c49c">FLAC__IOCallback_Seek</a></div><div class="ttdeci">int(* FLAC__IOCallback_Seek)(FLAC__IOHandle handle, FLAC__int64 offset, int whence)</div><div class="ttdef"><b>Definition:</b> callback.h:130</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_gad64901e5a5710ee4c3c157c75d51ddc0"><div class="ttname"><a href="group__flac__callbacks.html#gad64901e5a5710ee4c3c157c75d51ddc0">FLAC__IOCallbacks::write</a></div><div class="ttdeci">FLAC__IOCallback_Write write</div><div class="ttdef"><b>Definition:</b> callback.h:177</div></div>
<div class="ttc" id="agroup__flac__callbacks_html_gad991792235879aecae289b56a112e1b8"><div class="ttname"><a href="group__flac__callbacks.html#gad991792235879aecae289b56a112e1b8">FLAC__IOCallback_Write</a></div><div class="ttdeci">size_t(* FLAC__IOCallback_Write)(const void *ptr, size_t size, size_t nmemb, FLAC__IOHandle handle)</div><div class="ttdef"><b>Definition:</b> callback.h:117</div></div>
<div class="ttc" id="astructFLAC____IOCallbacks_html"><div class="ttname"><a href="structFLAC____IOCallbacks.html">FLAC__IOCallbacks</a></div><div class="ttdef"><b>Definition:</b> callback.h:175</div></div>
</div><!-- fragment --></div><!-- contents -->

<hr size="1"/>
Copyright (c) 2000-2009  Josh Coalson
Copyright (c) 2011-2023  Xiph.Org Foundation
<!-- Copyright (c) 2000-2009  Josh Coalson -->
<!-- Copyright (c) 2011-2023  Xiph.Org Foundation -->
<!-- Permission is granted to copy, distribute and/or modify this document -->
<!-- under the terms of the GNU Free Documentation License, Version 1.1 -->
<!-- or any later version published by the Free Software Foundation; -->
<!-- with no invariant sections. -->
<!-- A copy of the license can be found at http://www.gnu.org/copyleft/fdl.html -->
</body>
</html>
